local t = require('utils.table')
local m = require('utils.vim')
local w = require('utils.win')

local pick_modified_buffers = function()
   w.close_current_floating_window()

   local bs = vim.g.divo_not_save_buffers
   if #bs == 0 then
      require('notify')('No modified buffers exists!')
      return
   end
   require('helper.selector_buffer').quick_select(bs)
end

m.map("n","<M-b>",pick_modified_buffers,{desc="Pick modified buffers"})

-- EOP
